<?php


namespace App\Http\Controllers\admin;


use App\Dao\AdminDao;
use App\Dao\MenuDao;

/**
 * Class HomeController
 * @package App\Http\Controllers\admin
 * author:fhc
 * desc:主页
 * created_at: {2020/10/16}----10:38 上午
 */
class HomeController extends BaseController
{
    /**
     * author:fhc
     * desc:首页
     * created_at: {2020/10/16}----10:39 上午
     */
    public function index()
    {
        $userInfo = AdminDao::getOne([
            'id'=>request()->user_id
        ]);
        $menus = MenuDao::getMenus();
        return view('admin.home.home',[
            'userInfo'=>$userInfo,
            'menus'=>$menus
        ]);
    }

    public function home(){
        return view('admin.home.index',[
        ]);
    }
}
